﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for BookDAO
/// </summary>
public class BookDAO
{
    BookStoreDataContext bs;
    public BookDAO()
    {
        bs = new BookStoreDataContext();
    }
    public bool createBook(item i) {
        try
        {
            bs.items.InsertOnSubmit(i);
            return true;
        }
        catch(Exception ex){
            return false;
        }
    }
    
}